package zh.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class U_Account {
	
	@RequestMapping("/myindex_page")
	public String myvm(HttpServletRequest req, HttpServletResponse res){
		System.out.println("index");
		req.setAttribute("msg", "你用了velocity,在request存值就好");
		return "index";
	}
	
	@RequestMapping("/menu_page")
	public String menu(HttpServletRequest req, HttpServletResponse res){
		System.out.println("menu");
		req.setAttribute("msg", "你用了velocity,在request存值就好");
		return "menu";
	}
	
	@RequestMapping("/mylayout_page")
	public String mylayout(HttpServletRequest req, HttpServletResponse res){
		System.out.println("myvm");
		req.setAttribute("msg", "你用了velocity,在request存值就好");
		return "layout";
	}
	
	@RequestMapping("/jsp_page")
	public String jsp(HttpServletRequest req, HttpServletResponse res){
		System.out.println("myjsp");
		return "myjsp";
	}

}
